Imports Microsoft.VisualBasic
Imports System
Imports System.Collections
Imports System.ComponentModel
Imports System.Drawing
Imports System.Data
Imports System.Windows.Forms

Namespace Phoenix.Tools.Backup
	''' <summary>
	''' Summary description for DatabaseDefaultPage.
	''' </summary>
	Public Class DatabaseDefaultPage : Inherits Phoenix.Tools.WizardPageBase
		Private lblDescription As System.Windows.Forms.Label
		Private WithEvents Customize As System.Windows.Forms.Button
		''' <summary> 
		''' Required designer variable.
		''' </summary>
		Private components As System.ComponentModel.Container = Nothing

		Public Sub New()
			' This call is required by the Windows.Forms Form Designer.
			InitializeComponent()

			' TODO: Add any initialization after the InitializeComponent call

		End Sub

		''' <summary> 
		''' Clean up any resources being used.
		''' </summary>
		Protected Overrides Overloads Sub Dispose(ByVal disposing As Boolean)
			If disposing Then
				If Not components Is Nothing Then
					components.Dispose()
				End If
			End If
			MyBase.Dispose(disposing)
		End Sub

		#Region "Component Designer generated code"
		''' <summary> 
		''' Required method for Designer support - do not modify 
		''' the contents of this method with the code editor.
		''' </summary>
		Private Sub InitializeComponent()
			Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(DatabaseDefaultPage))
			Me.lblDescription = New System.Windows.Forms.Label()
			Me.Customize = New System.Windows.Forms.Button()
			Me.SuspendLayout()
			' 
			' lblDescription
			' 
			Me.lblDescription.Location = New System.Drawing.Point(24, 8)
			Me.lblDescription.Name = "lblDescription"
			Me.lblDescription.Size = New System.Drawing.Size(456, 43)
			Me.lblDescription.TabIndex = 1
			Me.lblDescription.Text = "By default to connect to Microsoft SQL Server will be used default server, user n" & "ame, and password. If you want to change this settings, click Customise button."
			' 
			' Customize
			' 
			Me.Customize.Location = New System.Drawing.Point(24, 64)
			Me.Customize.Name = "Customize"
			Me.Customize.TabIndex = 2
			Me.Customize.Text = "Customize"
'			Me.Customize.Click += New System.EventHandler(Me.Customize_Click);
			' 
			' DatabaseDefaultPage
			' 
			Me.Controls.Add(Me.Customize)
			Me.Controls.Add(Me.lblDescription)
			Me.Description = "Choose an Phoenix database for backup or restore."
			Me.HeaderImage = (CType(resources.GetObject("$this.HeaderImage"), System.Drawing.Image))
			Me.Name = "DatabaseDefaultPage"
			Me.Size = New System.Drawing.Size(924, 761)
			Me.Title = "Choose a Database"
'			Me.Next += New Phoenix.Tools.WizardForm.WizardNextEventHandler(Me.DatabaseDefaultPage_Next);
'			Me.Load += New System.EventHandler(Me.DatabaseDefaultPage_Load);
			Me.ResumeLayout(False)

		End Sub
		#End Region

		Public Manager As OperationManager

		Private Sub Customize_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Customize.Click
			WizardPageParent.MoveNextStep()
		End Sub

        Private Sub DatabaseDefaultPage_Next(ByVal sender As Object, ByVal e As Phoenix.Tools.WizardForm.EventNextArgs) Handles MyBase.NextEvent
            Manager.SetDefaultDatabseSettings()
            WizardPageParent.MoveNextStep()
        End Sub

        Protected Friend Overrides Sub OnPageShown()
            WizardPageParent.WizardButtons = WizardForm.TWizardsButtons.AllShort
        End Sub

        Private Sub DatabaseDefaultPage_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load

        End Sub
    End Class
End Namespace
